package com.avic.common.enums;

/**
 * @Description
 * @Author huangsheng
 * @Date 2018/10/23 10:31
 */
public enum MapVideoStateEnums {

    LOCAL(1, "未上传"),

    UPLOADED(2, "已上传"),

    UPLOAD_FAILED(3, "上传失败");


    private Integer state;

    private String describe;

    MapVideoStateEnums(int state, String describe) {
        this.describe = describe;
        this.state = state;
    }

    public Integer getState() {
        return state;
    }

    public String getDescribe() {
        return describe;
    }

    public static MapVideoStateEnums getMapVideoStateEnumsByState(int state) {
        for (MapVideoStateEnums mapTaggingEnums : MapVideoStateEnums.values()) {
            if (mapTaggingEnums.getState() == state) {
                return mapTaggingEnums;
            }
        }
        return null;
    }
}
